package com.qf.web;

import com.qf.service.OrderService;
import com.qf.service.UserService;
import com.qf.service.impl.OrderServiceImpl;
import com.qf.utils.BeanFactory;
import com.qf.utils.BeanFactory2;

import java.io.IOException;

public class UserServlet {

    public static void main(String[] args)  {

        UserService userService = (UserService) BeanFactory2.getBean("userService");

//        userService.findAll();
//        userService.findById(4);
//        userService.insert("zs","123",18);

        System.out.println("--------------");
        OrderService orderService = (OrderService) BeanFactory2.getBean("orderService");
        orderService.findAll();
        System.out.println("-----------");
        orderService.insert("zs","123",18);

//        System.out.println(userService);
    }
}
